﻿using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAP.BusinessOne.Cockpit.Services;

namespace SAP.BusinessOne.Cockpit.Handlers
{
    public class PageModule : CockpitModule
    {
        public PageModule()
            : base("pages")
        {
            Get["/"] = parameters => Response.AsJson(new PageService().GetPages());
        }
    }
}
